import { createRouter , createWebHashHistory} from "vue-router";

const routes = [
    {path:"/",name:'index',title:'首页',component: () => import("../views/index.vue")},
    {path:"/mall",name:'mall',title:'商城',component: () => import("../views/mall/index.vue")},
    {path:"/user",name:'user',title:'个人中心',component: () => import("../views/user.vue")},
    {path:"/userProfile",name:'userProfile',title:'个人主页',component: () => import("../views/userProfile.vue")},
    {path:"/login",name:'login',title:'登录',component: () => import("../views/login.vue")},
    {path:"/register",name:'register',title:'注册',component: () => import("../views/register.vue")},
];

const router=createRouter({
    history:createWebHashHistory(),
    routes:routes,
})

export default router